package com.example.demo.service;

import com.example.demo.pojo.PageBean;
import com.example.demo.pojo.User;

import java.util.List;

public interface UserService {

    User findByphoneNumber(String phonenumber);

    User findByemail(String eamil);

    void register(String realname, String password, String address, String phonenumber);

    void update(User user);

    void updatePwd(String newPwd);


    void updatebalance(double money);

    List<User> findAllUsers();

    void updateavatar(String avatarurl);


    PageBean<User> findByinfo(String realname, String phonenumber, String email, String address, int pageNum, int pageSize);

    void updateStatus(int userid,int status);

    void updateaccountbalance(int userid, Double accountbalance);

    void Updatebalance(Double balanceafter, Integer userid);
}
